﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using VIBlend.WPF.Controls;

namespace AnonsaiWPF.CSharp.Buttons
{
    public partial class Office2010SilverButtonsTheme : Window, IWindow
    {
        public Office2010SilverButtonsTheme()
        {
            InitializeComponent();
         }

        public void DetachContent()
        {
            RemoveLogicalChild(Content);
        }

        public void SetTheme()
        {
        }

        public Grid Root
        {
            get
            {
                return this.RootVisual;
            }
        }

        private void RadioButton_Checked1(object sender, RoutedEventArgs e)
        {
            if (this.DropDownButton == null)
                return;

            this.DropDownButton.ToggleButtonContent = "High";
            this.DropDownButton.IsDropDownOpen = false;
        }

        private void RadioButton_Checked1_1(object sender, RoutedEventArgs e)
        {
            if (this.DropDownButton == null)
                return;

            this.DropDownButton.ToggleButtonContent = "Average";
            this.DropDownButton.IsDropDownOpen = false;
        }

        private void RadioButton_Checked1_2(object sender, RoutedEventArgs e)
        {
            if (this.DropDownButton == null)
                return;

            this.DropDownButton.ToggleButtonContent = "Low";
            this.DropDownButton.IsDropDownOpen = false;
        }

        private void RadioButton_Checked(object sender, RoutedEventArgs e)
        {
            if (this.splitButton2 == null)
                return;

            this.splitButton2.PrimaryContent = "High";
            this.splitButton2.IsDropDownOpen = false;
        }

        private void RadioButton_Checked_1(object sender, RoutedEventArgs e)
        {
            if (this.splitButton2 == null)
                return;

            this.splitButton2.PrimaryContent = "Average";
            this.splitButton2.IsDropDownOpen = false;
        }

        private void RadioButton_Checked_2(object sender, RoutedEventArgs e)
        {
            if (this.splitButton2 == null)
                return;

            this.splitButton2.PrimaryContent = "Low";
            this.splitButton2.IsDropDownOpen = false;
        }

        private void Button1_Click(object sender, RoutedEventArgs e)
        {
            this.ProgressBar.Value++;
        }

        private void button1_Click_1(object sender, RoutedEventArgs e)
        {
            this.ProgressBar.Value = 0;
        }
    }
}
